//  开启一个服务器 
const express = require('express')
const app = express()

// 开放静态资源服务
app.use('/node_modules',express.static('../node_modules'))
app.use('/assets',express.static('./assets'))
app.use(express.static('./views'))

// 开启监听3000 端口 
app.listen(3000, function () {
    console.log('this server is running at http://127.0.0.1:3000')
})